package net.molchat.web;


/**
 * A set of variables for rendering user login/logout text.
 * 
 * 
 * @author Valentyn Markovych
 * 
 */
public class UserLoginBlock {


/** Is user logged in flag */
private boolean loggedIn;

/** Text for user name */
private String userName;

/** Text for login link */
private String loginText = "Login";
/** Login URL */
private String loginUrl;

/** Text for logout link */
private String logoutText = "Logout";
/** Logout URL */
private String logoutUrl;


/**
 * @return true if user is logged in, false othervise.
 */
public boolean isLoggedIn() {

	return loggedIn;
}


/**
 * @param fLoggedIn
 */
public void setLoggedIn(boolean fLoggedIn) {

	this.loggedIn = fLoggedIn;
}


/**
 * @return text for login link.
 */
public String getLoginText() {

	return loginText;
}


/**
 * @param loginText
 */
public void setLoginText(String loginText) {

	this.loginText = loginText;
}


/**
 * @return login URL.
 */
public String getLoginUrl() {

	return loginUrl;
}


/**
 * @param loginUrl
 */
public void setLoginUrl(String loginUrl) {

	this.loginUrl = loginUrl;
}


/**
 * @return logout link text.
 */
public String getLogoutText() {

	return logoutText;
}


/**
 * @param logoutText
 */
public void setLogoutText(String logoutText) {

	this.logoutText = logoutText;
}


/**
 * @return logout link URL.
 */
public String getLogoutUrl() {

	return logoutUrl;
}


/**
 * @param logoutUrl
 */
public void setLogoutUrl(String logoutUrl) {

	this.logoutUrl = logoutUrl;
}


/**
 * @return current user name.
 */
public String getUserName() {

	return userName;
}


/**
 * @param userName
 */
public void setUserName(String userName) {

	this.userName = userName;
}

}
